
import { computed, ref, reactive } from 'vue';
import { Pagination } from '@/types/global';
import type { TableColumnData, TableData } from '@arco-design/web-vue/es/table/interface';

const fmodel:any = {
  applicationId: 100,
  parameterCode: '',
  parameterName: '',
  parameterGroup: ''
};
export const formModel = ref(fmodel);

export const pagination: Pagination = reactive({
  current: 1,
  pageSize: 20,
});
export const columns = computed<TableColumnData[]>(() => [
  {
    title: '编号',
    dataIndex: 'parameterId',
  },
  {
    title: '参数代码',
    dataIndex: 'parameterCode',
  },
  {
    title: '参数名称',
    dataIndex: 'parameterName',
  },
  {
    title: '参数值',
    dataIndex: 'parameterValue',
  },
  {
    title: '参数类型',
    dataIndex: 'parameterTypeName',
  },
  {
    title: '参数分组',
    dataIndex: 'parameterGroup',
  },
  {
    title: '创建时间',
    dataIndex: 'time',
  },
  {
    title: '创建人',
    dataIndex: 'creatorName',
  },
  {
    title: '是否可用',
    dataIndex: 'enabled',
    slotName: 'enable',
  },
  {
    title: '操作',
    slotName: 'operations',
    width: 110,
    align: 'center',
  },
]);
